<template>
  <a class="videoItem" v-on:click="goVideoDetail">
<!--    <video src=""></video>-->
    <div class="img">
      <img src="~assets/img/video/video_img.jpg" alt="">
      <div class="info">
        100集连载中
      </div>
    </div>
    <div class="tit">
      重生灵界之霸道总裁
    </div>
    <div class="desc">
      重生灵界之霸道总裁重生灵界之霸道总裁重生灵界之霸道总裁重生灵界之霸道总裁重生灵界之霸道总裁重生灵界之霸道总裁重生灵界之霸道总裁
    </div>
  </a>
</template>

<script>
import {useRouter} from 'vue-router'
export default {
  name: "VideoItem",
  props:{

  },
  setup(){
    const router =useRouter()
    function goVideoDetail(){
      router.push('/detail')
    }

    return {
      goVideoDetail
    }
  }
}
</script>

<style scoped>
.videoItem{
  width: 18.5%;
  display: block;
  /*height: 300px;*/
}
.videoItem:hover .tit{
  color: #ee9439;
}
.img{
  /*height: 100%;*/
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.img .info{
  position: absolute;
  right: 0;
  bottom: 0;
  width: 110px;
  height: 34px;
  color: white;
  text-align: center;
  line-height: 34px;
  background: #9a9899;
  border-radius: 8px 0 0 0;
}
.img img{
  vertical-align: bottom;
  width: 100%;
  height: 100%;
}
.tit{
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  color: #f1f5f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.desc{
  color: #747379;
  font-size: 13px;
  line-height: 20px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}
</style>